//
//  UITableViewCell+Cellutils.m
//  MoYou
//
//  Created by 马彦 on 16/8/18.
//  Copyright © 2016年 MX. All rights reserved.
//

#import "UITableViewCell+Cellutils.h"
#import "MXSpeparatorLine.h"
#import <Masonry.h>

@implementation UITableViewCell (Cellutils)

- (void)addBottomHorizontalLine:(CGFloat)leftEdge {
    MXSpeparatorLine *lineView = [MXSpeparatorLine initHorizontalLinewidth:self.bounds.size.width orginX:leftEdge orginY:CGRectGetMaxY(self.contentView.frame)];
    [self addSubview:lineView];
    [self bringSubviewToFront:lineView];
    [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(leftEdge);
        make.right.mas_equalTo(0);
        make.bottom.mas_equalTo(0);
        make.height.mas_equalTo(0.5);
    }];
}

@end
